package cn.ym.mall.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 购物车表
 */
public class ShopTrolley implements Serializable {
    /**
     * 购物车编号
     */
    private Integer stid;
    /**
     * 用户编号
     */
    private Integer uid;
    /**
     * 商品编号
     */
    private Integer gid;
    /**
     * 商品数量
     */
    private Integer stnum;
    /**
     * 商品价格
     */
    private Double stprice;
    /**
     * 添加时间
     */
    private LocalDateTime stjoinTime;

    public ShopTrolley() {
    }

    public ShopTrolley(Integer stid, Integer uid, Integer gid, Integer stnum, Double stprice, LocalDateTime stjoinTime) {
        this.stid = stid;
        this.uid = uid;
        this.gid = gid;
        this.stnum = stnum;
        this.stprice = stprice;
        this.stjoinTime = stjoinTime;
    }

    public Integer getStid() {
        return stid;
    }

    public void setStid(Integer stid) {
        this.stid = stid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public Integer getStnum() {
        return stnum;
    }

    public void setStnum(Integer stnum) {
        this.stnum = stnum;
    }

    public Double getStprice() {
        return stprice;
    }

    public void setStprice(Double stprice) {
        this.stprice = stprice;
    }

    public LocalDateTime getStjoinTime() {
        return stjoinTime;
    }

    public void setStjoinTime(LocalDateTime stjoinTime) {
        this.stjoinTime = stjoinTime;
    }

    @Override
    public String toString() {
        return "ShopTrolley{" +
                "stid=" + stid +
                ", uid=" + uid +
                ", gid=" + gid +
                ", stnum=" + stnum +
                ", stprice=" + stprice +
                ", stjoinTime=" + stjoinTime +
                '}';
    }
}
